﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace XWeb
{
    public partial class PhotoUp : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SavaImage();
        }

        private void SavaImage()
        {
            if (Request.Files.Count > 0)
            {
                HttpPostedFile file = Request.Files[0];
                XCommon.utils.Waters ws = XCommon.utils.Waters.SaveAs(file);
                ws.SavaAsX1();
            }
        }
    }
}